'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadValueFunction( _ ByVal dataVariable As UADataVariable, _ ByVal valueTypeCode As TypeCode, _ ByVal readValueFunction As Func(Of Object) _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim valueTypeCode As TypeCode Dim readValueFunction As Func(Of Object) Dim value As UADataVariable value = UADataVariableExtension.ReadValueFunction(dataVariable, valueTypeCode, readValueFunction)
[Extension()] [NotNull()] public static UADataVariable ReadValueFunction( UADataVariable dataVariable, TypeCode valueTypeCode, Func<object> readValueFunction )
[Extension()] [NotNull()] public: static UADataVariable^ ReadValueFunction( UADataVariable^ dataVariable, TypeCode valueTypeCode, Func<Object^>^ readValueFunction )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - valueTypeCode
- The type of the data variable, expressed as .NET type code (System.TypeCode).
- readValueFunction
- The read value function, i.e. the function that performs the read operation and returns the value that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Return Value
This method never returns null
(Nothing
in Visual Basic).